| API Documentation |  |

- MAIN PAGE
- NAMESPACES
- CLASSES

DecodedMaterialData.h
1 // DecodedMaterialData.h
3 //
5
6 namespace nkGraphics
7 {
11 struct DecodedMaterialData final
12 {
13 // Attributes
14 nkMaths::Vector _ambientColor = nkMaths::Vector(1, 1, 1) ;
15 int _ambientTextureIndex = -1 ;
16 int _ambientTextureCoordinatesIndex = 0 ;
17 TextureChannels _ambientTextureChannels ;
18
19 nkMaths::Vector _diffuseColor = nkMaths::Vector(1, 1, 1) ;
20 int _diffuseTextureIndex = -1 ;
21 int _diffuseTextureCoordinatesIndex = 0 ;
22 TextureChannels _diffuseTextureChannels ;
23
24 nkMaths::Vector _specularColor = nkMaths::Vector(1, 1, 1) ;
25 int _specularTextureIndex = -1 ;
26 int _specularTextureCoordinatesIndex = 0 ;
27 TextureChannels _specularTextureChannels ;
28
29 nkMaths::Vector _emissiveColor = nkMaths::Vector(0, 0, 0) ;
30 int _emissiveTextureIndex = -1 ;
31 int _emissiveTextureCoordinatesIndex = 0 ;
32 TextureChannels _emissiveTextureChannels ;
33
34 float _roughnessFactor = 0.5f ;
35 int _roughnessTextureIndex = -1 ;
36 int _roughnessTextureCoordinatesIndex = 0 ;
37 TextureChannels _roughnessTextureChannels ;
38
39 float _metalnessFactor = 0.5f ;
40 int _metalnessTextureIndex = -1 ;
41 int _metalnessTextureCoordinatesIndex = 0 ;
42 TextureChannels _metalnessTextureChannels ;
43
44 float _glossinessFactor = 0.5f ;
45 int _glossinessTextureIndex = -1 ;
46 int _glossinessTextureCoordinatesIndex = 0 ;
47 TextureChannels _glossinessTextureChannels ;
48
49 float _occlusionFactor = 1.f ;
50 int _occlusionTextureIndex = -1 ;
51 int _occlusionTextureCoordinatesIndex = 0 ;
52 TextureChannels _occlusionTextureChannels ;
53
54 int _normalTextureIndex = -1
55 int _normalTextureCoordinatesIndex = 0 ;
56 TextureChannels _normalTextureChannels ;
57
58 float _alphaValue = 1.f ;
59 int _alphaTextureIndex = -1 ;
60 int _alphaTextureCoordinatesIndex = 0 ;
61 TextureChannels _alphaTextureChannels ;
62 } ;
63 }
nkGraphics::DecodedMaterialData::_metalnessTextureCoordinatesIndex
int _metalnessTextureCoordinatesIndex
The texture coordinate attribute index used by the metalness texture.
Definition: DecodedMaterialData.h:41
nkGraphics::DecodedMaterialData::_specularTextureChannels
TextureChannels _specularTextureChannels
The specular texture used channels.
Definition: DecodedMaterialData.h:27
nkGraphics::DecodedMaterialData::_metalnessTextureChannels
TextureChannels _metalnessTextureChannels
The metalness texture used channels.
Definition: DecodedMaterialData.h:42
nkGraphics::DecodedMaterialData::_glossinessTextureCoordinatesIndex
int _glossinessTextureCoordinatesIndex
The texture coordinate attribute index used by the glossiness texture.
Definition: DecodedMaterialData.h:46
nkGraphics::DecodedMaterialData::_diffuseTextureCoordinatesIndex
int _diffuseTextureCoordinatesIndex
The texture coordinate attribute index used by the diffuse texture.
Definition: DecodedMaterialData.h:21
nkGraphics::DecodedMaterialData::_alphaTextureCoordinatesIndex
int _alphaTextureCoordinatesIndex
The texture coordinate attribute index used by the alpha texture.
Definition: DecodedMaterialData.h:60
nkGraphics::DecodedMaterialData::_normalTextureChannels
TextureChannels _normalTextureChannels
The normal map texture used channels.
Definition: DecodedMaterialData.h:56
nkGraphics::DecodedMaterialData::_emissiveTextureIndex
int _emissiveTextureIndex
The emissive texture, as the index within the DecodedTextureData set counterpart. No texture is encod...
Definition: DecodedMaterialData.h:30
nkGraphics::DecodedMaterialData::_specularTextureIndex
int _specularTextureIndex
The specular texture, as the index within the DecodedTextureData set counterpart. No texture is encod...
Definition: DecodedMaterialData.h:25
nkGraphics::DecodedMaterialData::_emissiveColor
nkMaths::Vector _emissiveColor
The emissive color, if any.
Definition: DecodedMaterialData.h:29
nkGraphics::DecodedMaterialData::_metalnessTextureIndex
int _metalnessTextureIndex
The metalness texture, as the index within the DecodedTextureData set counterpart....
Definition: DecodedMaterialData.h:40
nkGraphics::DecodedMaterialData::_diffuseTextureChannels
TextureChannels _diffuseTextureChannels
The diffuse texture used channels.
Definition: DecodedMaterialData.h:22
nkGraphics::DecodedMaterialData::_ambientTextureCoordinatesIndex
int _ambientTextureCoordinatesIndex
The texture coordinate attribute index used by the ambient texture.
Definition: DecodedMaterialData.h:16
nkGraphics::DecodedMaterialData::_alphaTextureIndex
int _alphaTextureIndex
The alpha texture, as the index within the DecodedTextureData set counterpart. No texture is encoded ...
Definition: DecodedMaterialData.h:59
nkGraphics::DecodedMaterialData::_emissiveTextureCoordinatesIndex
int _emissiveTextureCoordinatesIndex
The texture coordinate attribute index used by the emissive texture.
Definition: DecodedMaterialData.h:31
nkGraphics::DecodedMaterialData::_occlusionFactor
float _occlusionFactor
The occlusion factor, if any.
Definition: DecodedMaterialData.h:49
nkGraphics::DecodedMaterialData
Holds data about a decoded material.
Definition: DecodedMaterialData.h:12
nkGraphics::DecodedMaterialData::_specularTextureCoordinatesIndex
int _specularTextureCoordinatesIndex
The texture coordinate attribute index used by the specular texture.
Definition: DecodedMaterialData.h:26
nkGraphics::DecodedMaterialData::_occlusionTextureChannels
TextureChannels _occlusionTextureChannels
The occlusion texture used channels.
Definition: DecodedMaterialData.h:52
nkGraphics::DecodedMaterialData::_occlusionTextureIndex
int _occlusionTextureIndex
The occlusion texture, as the index within the DecodedTextureData set counterpart....
Definition: DecodedMaterialData.h:50
nkGraphics::DecodedMaterialData::_roughnessTextureCoordinatesIndex
int _roughnessTextureCoordinatesIndex
The texture coordinate attribute index used by the roughness texture.
Definition: DecodedMaterialData.h:36
nkGraphics::DecodedMaterialData::_roughnessFactor
float _roughnessFactor
The roughness factor, if any.
Definition: DecodedMaterialData.h:34
nkGraphics::DecodedMaterialData::_ambientColor
nkMaths::Vector _ambientColor
The ambient color, if any.
Definition: DecodedMaterialData.h:14
nkGraphics::DecodedMaterialData::_glossinessTextureChannels
TextureChannels _glossinessTextureChannels
The glossiness texture used channels.
Definition: DecodedMaterialData.h:47
nkGraphics::DecodedMaterialData::_occlusionTextureCoordinatesIndex
int _occlusionTextureCoordinatesIndex
The texture coordinate attribute index used by the occlusion texture.
Definition: DecodedMaterialData.h:51
nkGraphics::DecodedMaterialData::_glossinessTextureIndex
int _glossinessTextureIndex
The glossiness texture, as the index within the DecodedTextureData set counterpart....
Definition: DecodedMaterialData.h:45
nkGraphics::DecodedMaterialData::_metalnessFactor
float _metalnessFactor
The metalness factor, if any.
Definition: DecodedMaterialData.h:39
nkGraphics::DecodedMaterialData::_ambientTextureIndex
int _ambientTextureIndex
The ambient texture, as the index within the DecodedTextureData set counterpart. No texture is encode...
Definition: DecodedMaterialData.h:15
nkGraphics::DecodedMaterialData::_roughnessTextureChannels
TextureChannels _roughnessTextureChannels
The roughness texture used channels.
Definition: DecodedMaterialData.h:37
nkGraphics::DecodedMaterialData::_alphaValue
float _alphaValue
The global alpha value, if any.
Definition: DecodedMaterialData.h:58
nkGraphics::DecodedMaterialData::_diffuseTextureIndex
int _diffuseTextureIndex
The diffuse texture, as the index within the DecodedTextureData set counterpart. No texture is encode...
Definition: DecodedMaterialData.h:20
nkGraphics::DecodedMaterialData::_alphaTextureChannels
TextureChannels _alphaTextureChannels
The alpha texture used channels.
Definition: DecodedMaterialData.h:61
nkGraphics::DecodedMaterialData::_emissiveTextureChannels
TextureChannels _emissiveTextureChannels
The emissive texture used channels.
Definition: DecodedMaterialData.h:32
nkGraphics::DecodedMaterialData::_diffuseColor
nkMaths::Vector _diffuseColor
The diffuse color, if any.
Definition: DecodedMaterialData.h:19
nkGraphics::DecodedMaterialData::_specularColor
nkMaths::Vector _specularColor
The specular color, if any.
Definition: DecodedMaterialData.h:24
nkGraphics
Encompasses all API of component NilkinsGraphics.
Definition: BoundingBox.h:7
nkMaths::Vector
A 4-component vector class, with floats.
Definition: Vector.h:12
nkGraphics::DecodedMaterialData::_normalTextureIndex
int _normalTextureIndex
The normal map texture, as the index within the DecodedTextureData set counterpart....
Definition: DecodedMaterialData.h:54
nkGraphics::DecodedMaterialData::_glossinessFactor
float _glossinessFactor
The glossiness factor, if any.
Definition: DecodedMaterialData.h:44
nkGraphics::DecodedMaterialData::_roughnessTextureIndex
int _roughnessTextureIndex
The roughness texture, as the index within the DecodedTextureData set counterpart....
Definition: DecodedMaterialData.h:35
nkGraphics::DecodedMaterialData::_ambientTextureChannels
TextureChannels _ambientTextureChannels
The ambient texture used channels.
Definition: DecodedMaterialData.h:17